<div class="leftpanel">
    	
        <div class="logopanel">
        	<h1><a href="<?php echo $baseurl;?>">Ggift <span>v1.0</span></a></h1>
        </div><!--logopanel-->
        
        <!--<div class="datewidget"><?php //echo "Hôm nay là ".date("D M j Y, G:i:s"); ?></div> -->
    
    	<div class="searchwidget">
            <?php echo form_open('')?>
            	<div class="input-append">
                    <input type="text" class="span2 search-query" placeholder="Nhập từ khóa..." name="keyword" />
                    <input type="hidden" name="type_submit" value="1" />
                    <button type="submit" class="btn"><span class="icon-search"></span></button>
                </div>
            </form>
        </div><!--searchwidget-->
        
        <div class="leftmenu">        
            <ul class="nav nav-tabs nav-stacked">
                <li class=""><a href="<?php echo $baseurl;?>"><span class="icon-align-justify"></span> Trang chủ</a></li>
                
                <li class="<?php if(in_array($controller, array('slides'))) echo 'active'?>"><a href="<?php echo $baseurl.'manage/slides'?>"><span class="icon-picture"></span> Slides</a></li>
                
                <li class="<?php if(in_array($controller, array('gpeople'))) echo 'active'?> dropdown"><a href=""><span class="icon-magnet"></span> Ưu đãi</a>
                	<ul <?php if(in_array($controller, array('gpeople'))) echo 'style="display: block"'?>>
                    	<li><a href="<?php echo $baseurl.'manage/g-people/add-incentives'?>">Thêm ưu đãi</a></li>
                        <li><a href="<?php echo $baseurl.'manage/g-people/incentives'?>">Quản lý ưu đãi</a></li>
                    </ul>
                </li>
                <!--li class="<?php if(in_array($controller, array('incentive'))) echo 'active'?> dropdown"><a href=""><span class="icon-magnet"></span> Ưu đãi mới nhất</a>
                	<ul <?php if(in_array($controller, array('incentive'))) echo 'style="display: block"'?>>
                    	<li><a href="<?php echo $baseurl.'manage/incentive/add-incentives'?>">Thêm ưu đãi</a></li>
                        <li><a href="<?php echo $baseurl.'manage/incentive/incentives'?>">Quản lý ưu đãi</a></li>
                    </ul>
                </li-->
                <li class="<?php if(in_array($action, array('vieworder', 'categoriesrestaurant','addcategories','editcategories','deletecategories', 'editrestaurant', 'addrestaurant', 'listrestaurant', 'listtaurantorder', 'viewlistorder'))) echo 'active'?> dropdown"><a href=""><span class="icon-fire"></span> Nhà hàng</a>
                	<ul <?php if(in_array($action, array('vieworder', 'categoriesrestaurant','addcategories','editcategories','deletecategories', 'editrestaurant', 'addrestaurant', 'listrestaurant', 'listtaurantorder', 'viewlistorder'))) echo 'style="display: block"'?>>
                    	<!--<li><a href="<?php //echo $baseurl.'manage/restaurant/categories'?>">Danh mục nhà hàng</a></li>-->
                        <li><a href="<?php echo $baseurl.'manage/restaurant/index'?>">Danh sách nhà hàng</a></li>
                        <li><a href="<?php echo $baseurl.'manage/address/index'?>">Danh sách địa chỉ</a></li>
                        <li><a href="<?php echo $baseurl.'manage/menus/index'?>">Danh sách thực đơn</a></li>
                        <li><a href="<?php echo $baseurl.'manage/restaurant/order'?>">Danh sách đặt bàn</a></li>
                    </ul>
                </li>
                 
                <li class="<?php if(in_array($action, array('listcoupon', 'addecoupon', 'editecoupon'))) echo 'active'?> dropdown"><a href=""><span class="icon-gift"></span> E-Coupon</a>
                	<ul <?php if(in_array($action, array('listcoupon', 'addecoupon', 'editecoupon'))) echo 'style="display: block"'?>>
                    	<li><a href="<?php echo $baseurl.'manage/ecoupon/add-ecoupon'?>">Tạo mới E-Coupon</a></li>
						<li><a href="<?php echo $baseurl.'manage/ecoupon/index'?>">Danh sách E-Coupon</a></li>
                        <li><a href="<?php echo $baseurl.'manage/userecoupon/index'?>">Sử dụng E-Coupon</a></li>
						<li><a href="<?php echo $baseurl.'manage/ecoupon/report-ecoupon'?>">Báo cáo</a></li>
                    </ul>
                </li>
				
				<li class="<?php if(in_array($controller, array('review')) && in_array($action, array('index', 'editreview'))) echo 'active'?> dropdown"><a href=""><span class="iconsweets-usercomment"></span> Review</a>
                	<ul <?php if(in_array($action, array('indexcountry', 'addcountry', 'editcountry', 'listzone', 'addzone', 'editzone'))) echo 'style="display: block"'?>>
                    	<li><a href="<?php echo $baseurl.'manage/review/index'?>">Review nhà hàng</a></li>
                        <li><a href="<?php echo $baseurl.'manage/review-coupon/index'?>">Review coupon</a></li>
                    </ul>
                </li>
				
				<li class="<?php if(in_array($controller, array('booking')) && in_array($action, array('index', 'editbooking'))) echo 'active'?> "><a href="<?php echo $baseurl.'manage/booking/index'?>"><span class="icon-upload"></span> Đặt bàn</a>
                </li>
				
                <li class="<?php if(in_array($action, array('indexcountry', 'addcountry', 'editcountry', 'listzone', 'addzone', 'editzone'))) echo 'active'?> dropdown"><a href=""><span class="icon-globe"></span> Quốc gia, khu vực</a>
                	<ul <?php if(in_array($action, array('indexcountry', 'addcountry', 'editcountry', 'listzone', 'addzone', 'editzone'))) echo 'style="display: block"'?>>
                    	<li><a href="<?php echo $baseurl.'manage/zone/country'?>">Quốc gia</a></li>
                        <li><a href="<?php echo $baseurl.'manage/zone/index'?>">Khu vực</a></li>
                    </ul>
                </li>
                
                <li class="<?php if(in_array($controller, array('faq'))) echo 'active'?> dropdown"><a href=""><span class="icon-question-sign"></span> Câu hỏi thường gặp</a>
                	<ul <?php if(in_array($controller, array('faq'))) echo 'style="display: block"'?>>
                    	<li><a href="<?php echo $baseurl.'manage/info/add-faq'?>">Thêm câu hỏi</a></li>
                        <li><a href="<?php echo $baseurl.'manage/info/faq'?>">Quản lý câu hỏi</a></li>
                    </ul>
                </li>
                <li class="<?php if(in_array($controller, array('job'))) echo 'active'?> dropdown"><a href=""><span class="icon-bookmark"></span> Nghề nghiệp</a>
                	<ul <?php if(in_array($controller, array('job'))) echo 'style="display: block"'?>>
                    	<li><a href="<?php echo $baseurl.'manage/job/add-job'?>">Thêm nghề nghiệp</a></li>
                        <li><a href="<?php echo $baseurl.'manage/job/index'?>">Quản lý nghề nghiệp</a></li>
                    </ul>
                </li>
                <!--li class="<?php if(in_array($controller, array('agegroups'))) echo 'active'?> dropdown"><a href=""><span class="icon-bookmark"></span> Nhóm tuổi</a>
                	<ul <?php if(in_array($controller, array('agegroups'))) echo 'style="display: block"'?>>
                    	<li><a href="<?php echo $baseurl.'manage/age-groups/add-age-groups'?>">Thêm nhóm tuổi</a></li>
                        <li><a href="<?php echo $baseurl.'manage/age-groups/index'?>">Quản lý nhóm tuổi</a></li>
                    </ul>
                </li
                <li class="<?php if(in_array($controller, array('gifts'))) echo 'active'?> dropdown"><a href=""><span class="icon-bookmark"></span> Quà tặng ngẫu nhiên</a>
                	<ul <?php if(in_array($controller, array('gifts'))) echo 'style="display: block"'?>>
                    	<li><a href="<?php echo $baseurl.'manage/gifts/add-gifts'?>">Thêm quà tặng</a></li>
                        <li><a href="<?php echo $baseurl.'manage/gifts/index'?>">Quản lý quà tặng</a></li>
                    </ul>
                </li>-->
                <li class="<?php if(in_array($controller, array('delivery'))) echo 'active'?>"><a href="<?php echo $baseurl.'manage/static/home-delivery'?>"><span class="  iconsweets-recycle"></span> Giao hàng tại nhà</a></li>
                <li class="<?php if(in_array($controller, array('campaign'))) echo 'active'?> dropdown"><a href=""><span class="icon-random"></span> Chiến dịch đăng kí tài khoản</a>
                	<ul <?php if(in_array($controller, array('campaign'))) echo 'style="display: block"'?>>
                    	<!--<li><a href="<?php echo $baseurl.'manage/campaign/user-ecoupon'?>">Danh sách voucher</a></li>
                        <li><a href="<?php echo $baseurl.'manage/campaign/active-user-ecoupon'?>">Sử dụng voucher</a></li> -->
						<li><a href="<?php echo $baseurl.'manage/campaign/report-voucher-code'?>">Báo cáo voucher</a></li>
						<!--<li><a href="<?php echo $baseurl.'manage/campaign/user-code'?>">Danh sách quà tặng</a></li>
						<li><a href="<?php echo $baseurl.'manage/campaign/active-user-code'?>">Sử dụng quà tặng</a></li>-->
                        <li><a href="<?php echo $baseurl.'manage/campaign/report-gift-code'?>">Báo cáo quà tặng</a></li>
						 <li><a href="<?php echo $baseurl.'manage/campaign/fix-email'?>">Nội dung email</a></li>
                    </ul>
                </li>
                <li class="<?php if(in_array($action, array('logogpeople', 'fanpagefacebook'))) echo 'active'?> dropdown"><a href=""><span class="icon-refresh"></span> Cài đặt khác</a>
                	<ul <?php if(in_array($action, array('logogpeople', 'fanpagefacebook'))) echo 'style="display: block"'?>>
                    	<li><a href="<?php echo $baseurl.'manage/static/logo-gpeople'?>">Logo G-People</a></li>
                        <li><a href="<?php echo $baseurl.'manage/static/fanpage'?>">Fanpage & Hotline</a></li>
						<li><a href="<?php echo $baseurl.'manage/static/urlhomeicook'?>">URL Download APP & ICOOK Homepage</a></li>
                        <li><a href="<?php echo $baseurl.'manage/setting'?>">Cài đặt giới hạn User</a></li>
						<li><a href="<?php echo $baseurl.'manage/static/distance'?>">Khoảng cách hiển thị trên bản đồ</a></li>
                        <li><a href="<?php echo $baseurl.'manage/statistic-downapp/index'?>">Thống kê cài app</a></li>
						<li><a href="<?php echo $baseurl.'manage/static/versionapp'?>">Phiên bản app</a></li>
                        <li><a href="<?php echo $baseurl.'manage/static/incentive-province'?>">Tỉnh/Thành phố ưu đãi mới nhất</a></li>
                    </ul>
                </li>
                
                <li class="<?php if(in_array($action, array('memberindex'))) echo 'active'?> dropdown"><a href=""><span class="iconsweets-users2"></span>Thành viên</a>
                	<ul <?php if(in_array($action, array('memberindex'))) echo 'style="display: block"'?>>
                    	<li><a href="<?php echo $baseurl.'manage/member/index'?>">Danh sách thành viên</a></li>
                    </ul>
                </li>
                
                <li class="<?php if(in_array($action, array('permissionlist', 'listadmin', 'addadmin', 'editadmin', 'addpermission', 'editpermission', 'permissionaccount'))) echo 'active'?> dropdown"><a href=""><span class="iconsweets-cog"></span> Hệ thống</a>
                	<ul <?php if(in_array($action, array('permissionlist', 'listadmin', 'addadmin', 'editadmin', 'addpermission', 'editpermission', 'permissionaccount'))) echo 'style="display: block"'?>>
                    	<li><a href="<?php echo $baseurl.'manage/system/permission-list'?>">Phân quyền</a></li>
                        <li><a href="<?php echo $baseurl.'manage/system/list-admin'?>">Quản trị</a></li>
						<li><a href="<?php echo $baseurl.'manage/system/list-staff'?>">Nhân viên check code</a></li>
                    </ul>
                </li>
                <li class="<?php if(in_array($controller, array('push'))) echo 'active'?>"><a href="<?php echo $baseurl.'manage/control/push'?>"><span class="  iconsweets-recycle"></span> Push Notification</a></li>
                
            </ul>
        </div><!--leftmenu-->
        
    </div>